import getComponeName from "../compontens/index"

export default [
    {
        path:"/login",
        component:getComponeName("Login"),
        title:"登录"
    },{
        path:"/registory",
        component:getComponeName("Registory"),
        title:"注册"
    },{
        path:"/changepassword",
        component:getComponeName("ChangePassword"),
        title:"修改密码"
    },{
        path:"/changevote",
        component:getComponeName("Changevote"),
        title:"添加投票"
    },{
        path:"/votelist",
        component:getComponeName("VoteList"),
        title:"投票列表"
    },{
        path:"/home",
        component:getComponeName("Home"),
        title:"主页",
        children:[
            {
                path:"/home/index",
                component:getComponeName("Home/Index"),
                title:"首页"
            },{
                path:"/home/my",
                component:getComponeName("Home/My"),
                title:"我的"
            },{
                path:"/home",
                redirect:"/home/index"
            }
        ]
    },{
        path:"/",
        redirect:"/login"
    }
]